<?php
	require('connect.php');
	$del1 = $mysqli->query("delete from tre where MA_TRE = '{$_REQUEST['matre']}'")
	or die($mysqli->error);
	$del2 = $mysqli->query("delete from hoc where MA_TRE = '{$_REQUEST['matre']}'")
	or die($mysqli->error);
	$del3 = $mysqli->query("delete from tinhhinhchung where MA_TRE = '{$_REQUEST['matre']}'")
	or die($mysqli->error);
	$del4 = $mysqli->query("delete from co_tn where MA_TRE = '{$_REQUEST['matre']}'")
	or die($mysqli->error);
	if ($del1 && $del2 && $del3 && $del4)
		echo "<meta http-equiv='refresh' content='0;index.php?cn=ql_tre&id=ds_tre'>";
?>